<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <title>Document</title>
    </head>
    <body>
        666
        <script>
            console.log(1111111);

            function hello() {
                return new Promise((res) => {
                    setTimeout(() => {
                        console.log('tt');
                        res('ok');
                    }, 1000);
                });
            }

            // (async () => {

            // })();

            async function name(params) {
                console.log(0000);
                let re = await hello();
                console.log(888888);
                console.log(re);
            }
            name();

            console.log(2222);
            function B() {
                console.log('B...');
            }
            console.log(new B());
            B();

            class A {
                constructor() {
                    console.log('A...');
                }
            }
            // A(); 类不可以调用
            console.log(new A());
        </script>
    </body>
</html>
